package com.fanrui.code.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class LoginInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public LoginInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andLoginIpIsNull() {
            addCriterion("login_ip is null");
            return (Criteria) this;
        }

        public Criteria andLoginIpIsNotNull() {
            addCriterion("login_ip is not null");
            return (Criteria) this;
        }

        public Criteria andLoginIpEqualTo(String value) {
            addCriterion("login_ip =", value, "loginIp");
            return (Criteria) this;
        }

        public Criteria andLoginIpNotEqualTo(String value) {
            addCriterion("login_ip <>", value, "loginIp");
            return (Criteria) this;
        }

        public Criteria andLoginIpGreaterThan(String value) {
            addCriterion("login_ip >", value, "loginIp");
            return (Criteria) this;
        }

        public Criteria andLoginIpGreaterThanOrEqualTo(String value) {
            addCriterion("login_ip >=", value, "loginIp");
            return (Criteria) this;
        }

        public Criteria andLoginIpLessThan(String value) {
            addCriterion("login_ip <", value, "loginIp");
            return (Criteria) this;
        }

        public Criteria andLoginIpLessThanOrEqualTo(String value) {
            addCriterion("login_ip <=", value, "loginIp");
            return (Criteria) this;
        }

        public Criteria andLoginIpLike(String value) {
            addCriterion("login_ip like", value, "loginIp");
            return (Criteria) this;
        }

        public Criteria andLoginIpNotLike(String value) {
            addCriterion("login_ip not like", value, "loginIp");
            return (Criteria) this;
        }

        public Criteria andLoginIpIn(List<String> values) {
            addCriterion("login_ip in", values, "loginIp");
            return (Criteria) this;
        }

        public Criteria andLoginIpNotIn(List<String> values) {
            addCriterion("login_ip not in", values, "loginIp");
            return (Criteria) this;
        }

        public Criteria andLoginIpBetween(String value1, String value2) {
            addCriterion("login_ip between", value1, value2, "loginIp");
            return (Criteria) this;
        }

        public Criteria andLoginIpNotBetween(String value1, String value2) {
            addCriterion("login_ip not between", value1, value2, "loginIp");
            return (Criteria) this;
        }

        public Criteria andLoginTimeIsNull() {
            addCriterion("login_time is null");
            return (Criteria) this;
        }

        public Criteria andLoginTimeIsNotNull() {
            addCriterion("login_time is not null");
            return (Criteria) this;
        }

        public Criteria andLoginTimeEqualTo(Date value) {
            addCriterion("login_time =", value, "loginTime");
            return (Criteria) this;
        }

        public Criteria andLoginTimeNotEqualTo(Date value) {
            addCriterion("login_time <>", value, "loginTime");
            return (Criteria) this;
        }

        public Criteria andLoginTimeGreaterThan(Date value) {
            addCriterion("login_time >", value, "loginTime");
            return (Criteria) this;
        }

        public Criteria andLoginTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("login_time >=", value, "loginTime");
            return (Criteria) this;
        }

        public Criteria andLoginTimeLessThan(Date value) {
            addCriterion("login_time <", value, "loginTime");
            return (Criteria) this;
        }

        public Criteria andLoginTimeLessThanOrEqualTo(Date value) {
            addCriterion("login_time <=", value, "loginTime");
            return (Criteria) this;
        }

        public Criteria andLoginTimeIn(List<Date> values) {
            addCriterion("login_time in", values, "loginTime");
            return (Criteria) this;
        }

        public Criteria andLoginTimeNotIn(List<Date> values) {
            addCriterion("login_time not in", values, "loginTime");
            return (Criteria) this;
        }

        public Criteria andLoginTimeBetween(Date value1, Date value2) {
            addCriterion("login_time between", value1, value2, "loginTime");
            return (Criteria) this;
        }

        public Criteria andLoginTimeNotBetween(Date value1, Date value2) {
            addCriterion("login_time not between", value1, value2, "loginTime");
            return (Criteria) this;
        }

        public Criteria andDeviceCardIsNull() {
            addCriterion("device_card is null");
            return (Criteria) this;
        }

        public Criteria andDeviceCardIsNotNull() {
            addCriterion("device_card is not null");
            return (Criteria) this;
        }

        public Criteria andDeviceCardEqualTo(String value) {
            addCriterion("device_card =", value, "deviceCard");
            return (Criteria) this;
        }

        public Criteria andDeviceCardNotEqualTo(String value) {
            addCriterion("device_card <>", value, "deviceCard");
            return (Criteria) this;
        }

        public Criteria andDeviceCardGreaterThan(String value) {
            addCriterion("device_card >", value, "deviceCard");
            return (Criteria) this;
        }

        public Criteria andDeviceCardGreaterThanOrEqualTo(String value) {
            addCriterion("device_card >=", value, "deviceCard");
            return (Criteria) this;
        }

        public Criteria andDeviceCardLessThan(String value) {
            addCriterion("device_card <", value, "deviceCard");
            return (Criteria) this;
        }

        public Criteria andDeviceCardLessThanOrEqualTo(String value) {
            addCriterion("device_card <=", value, "deviceCard");
            return (Criteria) this;
        }

        public Criteria andDeviceCardLike(String value) {
            addCriterion("device_card like", value, "deviceCard");
            return (Criteria) this;
        }

        public Criteria andDeviceCardNotLike(String value) {
            addCriterion("device_card not like", value, "deviceCard");
            return (Criteria) this;
        }

        public Criteria andDeviceCardIn(List<String> values) {
            addCriterion("device_card in", values, "deviceCard");
            return (Criteria) this;
        }

        public Criteria andDeviceCardNotIn(List<String> values) {
            addCriterion("device_card not in", values, "deviceCard");
            return (Criteria) this;
        }

        public Criteria andDeviceCardBetween(String value1, String value2) {
            addCriterion("device_card between", value1, value2, "deviceCard");
            return (Criteria) this;
        }

        public Criteria andDeviceCardNotBetween(String value1, String value2) {
            addCriterion("device_card not between", value1, value2, "deviceCard");
            return (Criteria) this;
        }

        public Criteria andPlatformFlagIsNull() {
            addCriterion("platform_flag is null");
            return (Criteria) this;
        }

        public Criteria andPlatformFlagIsNotNull() {
            addCriterion("platform_flag is not null");
            return (Criteria) this;
        }

        public Criteria andPlatformFlagEqualTo(Integer value) {
            addCriterion("platform_flag =", value, "platformFlag");
            return (Criteria) this;
        }

        public Criteria andPlatformFlagNotEqualTo(Integer value) {
            addCriterion("platform_flag <>", value, "platformFlag");
            return (Criteria) this;
        }

        public Criteria andPlatformFlagGreaterThan(Integer value) {
            addCriterion("platform_flag >", value, "platformFlag");
            return (Criteria) this;
        }

        public Criteria andPlatformFlagGreaterThanOrEqualTo(Integer value) {
            addCriterion("platform_flag >=", value, "platformFlag");
            return (Criteria) this;
        }

        public Criteria andPlatformFlagLessThan(Integer value) {
            addCriterion("platform_flag <", value, "platformFlag");
            return (Criteria) this;
        }

        public Criteria andPlatformFlagLessThanOrEqualTo(Integer value) {
            addCriterion("platform_flag <=", value, "platformFlag");
            return (Criteria) this;
        }

        public Criteria andPlatformFlagIn(List<Integer> values) {
            addCriterion("platform_flag in", values, "platformFlag");
            return (Criteria) this;
        }

        public Criteria andPlatformFlagNotIn(List<Integer> values) {
            addCriterion("platform_flag not in", values, "platformFlag");
            return (Criteria) this;
        }

        public Criteria andPlatformFlagBetween(Integer value1, Integer value2) {
            addCriterion("platform_flag between", value1, value2, "platformFlag");
            return (Criteria) this;
        }

        public Criteria andPlatformFlagNotBetween(Integer value1, Integer value2) {
            addCriterion("platform_flag not between", value1, value2, "platformFlag");
            return (Criteria) this;
        }

        public Criteria andAppVerionIsNull() {
            addCriterion("app_verion is null");
            return (Criteria) this;
        }

        public Criteria andAppVerionIsNotNull() {
            addCriterion("app_verion is not null");
            return (Criteria) this;
        }

        public Criteria andAppVerionEqualTo(String value) {
            addCriterion("app_verion =", value, "appVerion");
            return (Criteria) this;
        }

        public Criteria andAppVerionNotEqualTo(String value) {
            addCriterion("app_verion <>", value, "appVerion");
            return (Criteria) this;
        }

        public Criteria andAppVerionGreaterThan(String value) {
            addCriterion("app_verion >", value, "appVerion");
            return (Criteria) this;
        }

        public Criteria andAppVerionGreaterThanOrEqualTo(String value) {
            addCriterion("app_verion >=", value, "appVerion");
            return (Criteria) this;
        }

        public Criteria andAppVerionLessThan(String value) {
            addCriterion("app_verion <", value, "appVerion");
            return (Criteria) this;
        }

        public Criteria andAppVerionLessThanOrEqualTo(String value) {
            addCriterion("app_verion <=", value, "appVerion");
            return (Criteria) this;
        }

        public Criteria andAppVerionLike(String value) {
            addCriterion("app_verion like", value, "appVerion");
            return (Criteria) this;
        }

        public Criteria andAppVerionNotLike(String value) {
            addCriterion("app_verion not like", value, "appVerion");
            return (Criteria) this;
        }

        public Criteria andAppVerionIn(List<String> values) {
            addCriterion("app_verion in", values, "appVerion");
            return (Criteria) this;
        }

        public Criteria andAppVerionNotIn(List<String> values) {
            addCriterion("app_verion not in", values, "appVerion");
            return (Criteria) this;
        }

        public Criteria andAppVerionBetween(String value1, String value2) {
            addCriterion("app_verion between", value1, value2, "appVerion");
            return (Criteria) this;
        }

        public Criteria andAppVerionNotBetween(String value1, String value2) {
            addCriterion("app_verion not between", value1, value2, "appVerion");
            return (Criteria) this;
        }

        public Criteria andPlayerIdIsNull() {
            addCriterion("player_id is null");
            return (Criteria) this;
        }

        public Criteria andPlayerIdIsNotNull() {
            addCriterion("player_id is not null");
            return (Criteria) this;
        }

        public Criteria andPlayerIdEqualTo(Long value) {
            addCriterion("player_id =", value, "playerId");
            return (Criteria) this;
        }

        public Criteria andPlayerIdNotEqualTo(Long value) {
            addCriterion("player_id <>", value, "playerId");
            return (Criteria) this;
        }

        public Criteria andPlayerIdGreaterThan(Long value) {
            addCriterion("player_id >", value, "playerId");
            return (Criteria) this;
        }

        public Criteria andPlayerIdGreaterThanOrEqualTo(Long value) {
            addCriterion("player_id >=", value, "playerId");
            return (Criteria) this;
        }

        public Criteria andPlayerIdLessThan(Long value) {
            addCriterion("player_id <", value, "playerId");
            return (Criteria) this;
        }

        public Criteria andPlayerIdLessThanOrEqualTo(Long value) {
            addCriterion("player_id <=", value, "playerId");
            return (Criteria) this;
        }

        public Criteria andPlayerIdIn(List<Long> values) {
            addCriterion("player_id in", values, "playerId");
            return (Criteria) this;
        }

        public Criteria andPlayerIdNotIn(List<Long> values) {
            addCriterion("player_id not in", values, "playerId");
            return (Criteria) this;
        }

        public Criteria andPlayerIdBetween(Long value1, Long value2) {
            addCriterion("player_id between", value1, value2, "playerId");
            return (Criteria) this;
        }

        public Criteria andPlayerIdNotBetween(Long value1, Long value2) {
            addCriterion("player_id not between", value1, value2, "playerId");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}